package com.tengfei.main.course.service;


import com.tengfei.common.core.domain.PageQuery;
import com.tengfei.common.core.page.TableDataInfo;
import com.tengfei.main.course.domain.bo.VideoBo;
import com.tengfei.main.course.domain.vo.VideoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Collection;

/**
 * 视频Service接口
 *
 * @author tengfei
 * @date 2022-07-26
 */
public interface IVideoService {

    /**
     * 查询视频
     */
    VideoVo queryById(Long videoId);

    /**
     * 查询视频列表
     */
    TableDataInfo<VideoVo> queryPageList(VideoBo bo, PageQuery pageQuery);



    /**
     * 修改视频
     */
    Boolean updateByBo(VideoBo bo);

    /**
     * 校验并批量删除视频信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);

    VideoVo uploadVideo(MultipartFile file);

    Integer queryDurationById(Long videoId);

}
